package org.jeecg.modules.charge.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.entity.charge.ChargeOrderReviewDetail;
import org.jeecg.modules.charge.mapper.ChargeOrderReviewDetailMapper;
import org.jeecg.modules.charge.service.IChargeOrderReviewDetailService;
import org.springframework.stereotype.Service;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Description: 交易对账明细
 * @Author: jeecg-boot
 * @Date:   2020-11-15
 * @Version: V1.0
 */
@Service
public class ChargeOrderReviewDetailServiceImpl extends ServiceImpl<ChargeOrderReviewDetailMapper, ChargeOrderReviewDetail> implements IChargeOrderReviewDetailService {
	
	@Autowired
	private ChargeOrderReviewDetailMapper chargeOrderReviewDetailMapper;
	
	@Override
	public List<ChargeOrderReviewDetail> selectByMainId(String mainId) {
		return chargeOrderReviewDetailMapper.selectByMainId(mainId);
	}

	@Override
	public List<ChargeOrderReviewDetail> listChargeOrderReviewDetailByMainId(Page<ChargeOrderReviewDetail> page, ChargeOrderReviewDetail chargeOrderReviewDetail) {
		return chargeOrderReviewDetailMapper.findPage(page, chargeOrderReviewDetail);
	}

	@Override
	public void batchSaveOrUpdate(List<ChargeOrderReviewDetail> details) {
		chargeOrderReviewDetailMapper.batchSaveOrUpdate(details);
	}
}
